import React from 'react';
import {Platform} from 'react-native';
import {createStackNavigator} from 'react-navigation-stack';
import ProductEditScreen from '../pages/order-form/product-edit-screen';

const ModalNavigator = createStackNavigator(
  {
    ProductEditModal: ProductEditScreen,
  },
  {
    mode: 'modal',
    headerMode: 'none',
    navigationOptions: {
      header: null,
      headerBackTitleStyle: Platform.OS === 'ios' && {
        height: 0,
        width: 0,
      },
    },
    headerBackTitleVisible: true,
  },
);

export default ModalNavigator;
